﻿@model BrnMall.Web.StoreAdmin.Models.FullSendPromotionListModel
           
@section header{
    <title>满赠促销-促销活动</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css"/>
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
    <script type="text/javascript" src="/components/my97datepicker/WdatePicker.js"></script>
    <script>
            $(function () {
                formatDate("date"); //格式化日期
            });
    </script>
}

@section body{
    <h1 class="rightH1">
		微信小程序 &gt; 促销活动 &gt; <span class="rightH1-cur">满赠促销</span>
<div class="right">
<a href="@Url.Action("addfullsendpromotion")" class="menuBT"><img src="/admin_store/images/add.jpg"/>添加</a>
<div class="clear"></div>
</div>
        <div class="clear">
        </div>
    </h1>

 @using (Html.BeginForm())
    {
    
        <div class="dataListSearch">
            <table height="32">
                <tbody class="col2">
                    <tr>
                        <td class="td1">活动名称：@Html.TextBox("PromotionName", Model.PromotionName, new { height = "28", size = "30" })</td>
                        <td class="td2">活动时间：@Html.TextBox("PromotionTime", Model.PromotionTime, new { height = "28", size = "30", onfocus = "WdatePicker({el:'PromotionTime'})" })</td>
                        <td><input id="SearchProduct" name="SearchProduct" type="image" class="searchBut submit" src="/admin_store/images/s.jpg" /></td>
                    </tr>
                </tbody>
            </table>
        </div>

    <div class="dataList">
        <table width="100%">
            <thead>
                <tr>
                    <th width="20" align="center"><input type="checkbox" id="allSelect" /></th>
                    <th width="80" align="left">活动编号</th>
                    <th align="left">活动名称</th>
                    <th width="80" align="left">活动额度</th>
                    <th width="80" align="left">补充额度</th>
                    <th width="130" align="left">开始时间</th>
                    <th width="130" align="left">结束时间</th>
                    <th width="60" align="left">活动状态</th>
                    <th width="240" align="center">管理操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (DataRow row in Model.FullSendPromotionList.Rows)
                {
                    <tr>
                        <td align="center"><input type="checkbox" value="@row["pmid"]" selectItem="true" name="pmIdList"/></td>
                        <td>@row["pmid"]</td>
                        <td>@row["name"]</td>
                        <td>@row["limitmoney"]</td>
                        <td>@row["addmoney"]</td>
                        <td class="date" data-time="@row["starttime"]">@row["starttime"]</td>
                        <td class="date" data-time="@row["starttime"]">@row["endtime"]</td>
                        <td>
                            @{
                                if (row["state"].ToString() == "0")
                                {
                                    @:暂停
                                }
                                else
                                {
                                    @:启动
                                }
                            }
                        </td>
                        <td>
        @Html.ActionLink("主商品列表", "fullsendproductlist", new { pmId = row["pmid"], type = 0 }, new { @class = "editOperate" })&nbsp;|&nbsp;
        @Html.ActionLink("赠品列表", "fullsendproductlist", new { pmId = row["pmid"], type = 1 }, new { @class = "editOperate" })&nbsp;|&nbsp;
        @Html.ActionLink("编辑", "editfullsendpromotion", new { pmId = row["pmid"] }, new { @class = "editOperate" })&nbsp;|&nbsp;
        @Html.ActionLink("删除", "delfullsendpromotion", new { pmIdList = row["pmid"] }, new { @class = "deleteOperate" })
                        </td>
                    </tr>
                }
            </tbody>
        </table>
        </div>
         <div class="dataListEdit">
    <a href="#" delUrl="@Url.Action("delfullsendpromotion")" class="batch batchDel">批量删除</a>
            <div class="page">
                @Html.StoreAdminPager(Model.PageModel)
            </div>
        </div>

    }
}
